//
//  HXDDiscoverTableViewController.swift
//  weibo
//
//  Created by huxuedong on 15/12/5.
//  Copyright © 2015年 huxuedong. All rights reserved.
//

import UIKit

class HXDDiscoverTableViewController: HXDVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if !userLogin {
            visitorView?.setVisitorInfo(imageName: "visitordiscover_image_message", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            return
        }
        setupUI()
    }
    
    func setupUI() {
        let searchView = HXDDiscoverSearchView.discoverSearchView()
        searchView.frame = CGRect(x: 0, y: 0, width: UIScreen.mainScreen().bounds.width, height: 35)
        navigationItem.titleView = searchView
        tabBarItem.badgeValue = "521"
    }
    
}
